package com.example.wanjialei.mapper;

import com.example.wanjialei.pojo.Stock;
import com.example.wanjialei.pojo.StockExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

public interface StockMapper {
    long countByExample(StockExample example);

    int deleteByExample(StockExample example);

    int deleteByPrimaryKey(Integer sno);

    int insert(Stock row);

    int insertSelective(Stock row);

    List<Stock> selectByExample(StockExample example);

    Stock selectByPrimaryKey(Integer sno);

    int updateByExampleSelective(@Param("row") Stock row, @Param("example") StockExample example);

    int updateByExample(@Param("row") Stock row, @Param("example") StockExample example);

    int updateByPrimaryKeySelective(Stock row);

    int updateByPrimaryKey(Stock row);

    List<Stock> selectAll2();
    List<Stock> selectAll3(Stock stock);
//    联表查询所有信息
    List<Stock> selectAll(Stock stock);
//    审核通过
    int approvedBysno(Stock stock);
    int huizongBysno(Stock stock);
//    审核不通过
    int rejectedBysno(Stock stock);
//    复核通过
    int recheckBysno(Stock stock);
}